package com.ms.domain.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serial;
import java.io.Serializable;

/**
 * 曲风实体
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName(value = "genre", autoResultMap = true)
public class Genre implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    private Integer id;

    // 曲风名称
    @TableField(condition = SqlCondition.LIKE)
    private String name;

    // 曲风级别
    @TableField(condition = SqlCondition.LIKE)
    private String type;

    // 曲风描述
    @TableField(condition = SqlCondition.LIKE)
    private String description;

    // 父分类ID
    @TableField(value = "parent_id")
    private Integer parentId;

    // 层级路径(如1-2-3)
    @TableField(value = "level_path")
    private String levelPath;
}
